﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="FlashGameSite.FormRegister" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="content">
        <div class="block">
            <div class="block-bot">
                <div class="head">
                    <div class="head-cnt">
                        <h3>Register</h3>
                        <div class="cl">
                        </div>
                    </div>
                </div>
            </div>
            <asp:UpdatePanel ID="pnlUpdate" runat="server" style="margin: 20px;" UpdateMode="Always">
                <ContentTemplate>
                    <table style="width:500px; height:230px;">
                        <tr>
                            <td>
                                <label>Name</label></td>
                            <td>
                                <asp:TextBox ID="txtName" CssClass="txtcls" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>
                                <label>Username</label></td>
                            <td>
                                <asp:TextBox ID="txtUsername" CssClass="txtcls" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>
                                <label>Password</label></td>
                            <td>
                                <asp:TextBox ID="txtPassword" CssClass="txtcls" runat="server" TextMode="Password"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>
                                <label>Re-enter Password</label></td>
                            <td>
                                <asp:TextBox ID="txtReenterPassword" CssClass="txtcls" runat="server" TextMode="Password"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td colspan="2"">
                                <asp:Button ID="btnRegister" style="float:right;" runat="server" CssClass="btncls" Text="Register" OnClick="btnRegister_Click" />
                                <asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="txtName" Display="None" ErrorMessage="Name is required"></asp:RequiredFieldValidator>
                                <asp:RequiredFieldValidator ID="rfvUsername" runat="server" ControlToValidate="txtUsername" Display="None" ErrorMessage="Username is required"></asp:RequiredFieldValidator>
                                <asp:RequiredFieldValidator ID="rfvPassword" runat="server" ControlToValidate="txtPassword" Display="None" ErrorMessage="Password is required"></asp:RequiredFieldValidator>


                                <asp:RequiredFieldValidator ID="rfvPassword1" runat="server" ControlToValidate="txtReenterPassword" Display="None" ErrorMessage="Re-enter password"></asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="cvPassword" runat="server" ControlToCompare="txtPassword" ControlToValidate="txtReenterPassword" Display="None" ErrorMessage="Password mismatch"></asp:CompareValidator>
                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" />


                            </td>
                        </tr>
                    </table>


                </ContentTemplate>
            </asp:UpdatePanel>
        </div>

    </div>
</asp:Content>
